package io.github.talelin.latticy.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.github.talelin.latticy.mapper.MsgLogMapper;
import io.github.talelin.latticy.model.MsgLogDO;
import io.github.talelin.latticy.service.MsgLogService;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 消息投递日志 服务实现类
 * </p>
 *
 * @author generator@wulongbo
 * @since 2022-07-22
 */
@Service
public class MsgLogServiceImpl extends ServiceImpl<MsgLogMapper, MsgLogDO> implements MsgLogService {

    @Override
    public boolean createMsgLog(MsgLogDO msgLogDO) {
        return this.save(msgLogDO);
    }

    @Override
    public boolean updateMsgLogById(MsgLogDO msgLogDO) {
        return this.updateById(msgLogDO);
    }

    @Override
    public MsgLogDO getMsgLogById(Long id) {
        return this.getById(id);
    }
}
